<?php
session_start();
// 检查是否登录
if (!isset($_SESSION['username'])) {
    header("Location: ../unilogin/index.html");
    exit();
}
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>论坛网站</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <header>
        <div class="container">
            <h1>ABC论坛</h1>
            <h1><a href="index.php">首页</a></li>
                <a href="create_post.php">发布帖子</a></li>
                <a href="user_profile.php">个人中心</a></li></h1>
               
                
           
        </div>
    </header>
    <main class="container">
